<?php



use Doctrine\ORM\Mapping as ORM;

/**
 * Offrir
 *
 * @ORM\Table(name="offrir")
 * @ORM\Entity
 */
class Offrir
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer $rapnum
     *
     * @ORM\Column(name="rapNum", type="integer", nullable=false)
     */
    private $rapnum;

    /**
     * @var integer $offqte
     *
     * @ORM\Column(name="offQte", type="integer", nullable=true)
     */
    private $offqte;

    /**
     * @var Medicament
     *
     * @ORM\OneToOne(targetEntity="Medicament")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="medDepotlegal", referencedColumnName="medDepotlegal", unique=true)
     * })
     */
    private $meddepotlegal;

    /**
     * @var Visiteur
     *
     * @ORM\OneToOne(targetEntity="Visiteur")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="visMatricule", referencedColumnName="visMatricule", unique=true)
     * })
     */
    private $vismatricule;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set rapnum
     *
     * @param integer $rapnum
     * @return Offrir
     */
    public function setRapnum($rapnum)
    {
        $this->rapnum = $rapnum;
        return $this;
    }

    /**
     * Get rapnum
     *
     * @return integer 
     */
    public function getRapnum()
    {
        return $this->rapnum;
    }

    /**
     * Set offqte
     *
     * @param integer $offqte
     * @return Offrir
     */
    public function setOffqte($offqte)
    {
        $this->offqte = $offqte;
        return $this;
    }

    /**
     * Get offqte
     *
     * @return integer 
     */
    public function getOffqte()
    {
        return $this->offqte;
    }

    /**
     * Set meddepotlegal
     *
     * @param Medicament $meddepotlegal
     * @return Offrir
     */
    public function setMeddepotlegal(\Medicament $meddepotlegal = null)
    {
        $this->meddepotlegal = $meddepotlegal;
        return $this;
    }

    /**
     * Get meddepotlegal
     *
     * @return Medicament 
     */
    public function getMeddepotlegal()
    {
        return $this->meddepotlegal;
    }

    /**
     * Set vismatricule
     *
     * @param Visiteur $vismatricule
     * @return Offrir
     */
    public function setVismatricule(\Visiteur $vismatricule = null)
    {
        $this->vismatricule = $vismatricule;
        return $this;
    }

    /**
     * Get vismatricule
     *
     * @return Visiteur 
     */
    public function getVismatricule()
    {
        return $this->vismatricule;
    }
}